package cn.funnyxb.powerremember.pullMsg.beans;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import java.io.Serializable;
import java.util.HashMap;

public class WebMsg
  implements Serializable
{
  private static String PreferencesName = "webMsg";
  private static String PreferencesName_Key = "webmsgReadedId";
  private static final long serialVersionUID = 1L;
  private String buttonTitle = null;
  private String buttonUrl = null;
  private long id = 0L;
  private String msgHtml;
  private String title;

  public static long getLastShowedId(Context paramContext)
  {
    return paramContext.getSharedPreferences(PreferencesName, 0).getLong(PreferencesName_Key, 0L);
  }

  public static WebMsg parseFromHashMap(HashMap<String, String> paramHashMap)
  {
    WebMsg localWebMsg = new WebMsg();
    localWebMsg.id = Long.parseLong((String)paramHashMap.get("id"));
    localWebMsg.title = ((String)paramHashMap.get("title"));
    localWebMsg.msgHtml = ((String)paramHashMap.get("msgHtml"));
    localWebMsg.buttonTitle = ((String)paramHashMap.get("buttonTitle"));
    localWebMsg.buttonUrl = ((String)paramHashMap.get("buttonUrl"));
    return localWebMsg;
  }

  public static boolean setLastReaded(Context paramContext, long paramLong)
  {
    return paramContext.getSharedPreferences(PreferencesName, 0).edit().putLong(PreferencesName_Key, paramLong).commit();
  }

  public String getButtonTitle()
  {
    return this.buttonTitle;
  }

  public String getButtonUrl()
  {
    return this.buttonUrl;
  }

  public long getId()
  {
    return this.id;
  }

  public String getMsgHtml()
  {
    return this.msgHtml;
  }

  public String getTitle()
  {
    return this.title;
  }

  public String toString()
  {
    return "WebMsg [id=" + this.id + ", title=" + this.title + ", msgHtml=" + this.msgHtml + ", buttonTitle=" + this.buttonTitle + ", buttonUrl=" + this.buttonUrl + "]";
  }
}

/* Location:           E:\Desktop\复件 classes_dex2jar.jar
 * Qualified Name:     cn.funnyxb.powerremember.pullMsg.beans.WebMsg
 * JD-Core Version:    0.5.3
 */